@extends('layouts.adminlayout')

@section('main')

<p>{{ link_to_route('certificates.index', 'Trở lại danh sách chứng chỉ', null, array('class'=>'btn btn-info')) }}</p>

<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Chứng Chỉ <small>Văn phòng, ứng dụng</small></h3>
                </div><!-- /.box-header -->
                <div class="box-body table-responsive">

                    <table class="table table-striped table-bordered">
                        <thead>
                            <tr>
                                <th>Mã chứng chỉ</th>
                                <th>Tên chứng chỉ</th>
                                <th></th>
                                <th></th>
                            </tr>
                        </thead>

                        <tbody>
                            <tr>
                                <td>{{{ $chung_chi->ma_chung_chi }}}</td>
                                <td>{{{ $chung_chi->ten_chung_chi }}}</td>
                                <td>{{ link_to_route('certificates.edit', '', array($chung_chi->id), array('class' => 'btn btn-info fa fa-edit')) }}</td>
                                <td>
                                    {{ Form::open(array('method' => 'DELETE', 'route' => array('certificates.destroy', $chung_chi->id))) }}
                                    <button type="submit" class="btn btn-danger"><li class="fa fa-trash-o"></li></button>
                                    {{ Form::close() }}
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div><!-- /.box-body -->
            </div><!-- /.box -->
        </div>
    </div>
</section>
@stop